<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:form="http://www.springframework.org/tags/form"
	xmlns:spring="http://www.springframework.org/tags" version="2.0">
	<jsp:directive.page contentType="text/html; charset=UTF-8"
		pageEncoding="UTF-8" session="true" />
	<jsp:output doctype-root-element="html"
		doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
		doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
		omit-xml-declaration="true" />
	<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><spring:message code="page.login.title" /></title>
<spring:url value="/resources/style.css" var="cssRes"></spring:url>
<link href="${cssRes}" rel="stylesheet" type="text/css" />
</head>
<body>
	<c:import url="SelectLocale.jsp" />

	<form action="j_spring_security_check" method="post">
		<fieldset>
			<legend>
				<spring:message code="loginform.label" />
			</legend>
			<p>
				<label for="j_username"><spring:message
						code="loginform.username" /></label>: <input id="j_username"
					name="j_username" size="20" maxlength="50" type="text" />
			</p>
			<p>
				<label for="j_password"><spring:message
						code="loginform.password" /></label>: <input id="j_password"
					name="j_password" size="20" maxlength="50" type="password" />
			</p>
			<p>
				<c:url value="/register" var="registerRef" />
				<a href="${registerRef}"><spring:message
						code="page.label.register" /></a>
			</p>
			<p>
				<spring:message code="loginform.submit" var="buttonSubmit"></spring:message>
				<input type="submit" value="${buttonSubmit}" />
			</p>
		</fieldset>
	</form>
	<c:if test="${errorMessage ne null }">
		<p id="error">
			<spring:message code="${errorMessage}" />
		</p>
	</c:if>
</body>
	</html>
</jsp:root>